package com.angel.architecture.daos.impl;

import java.util.Collection;

import com.angel.architecture.daos.ParameterAreaDAO;
import com.angel.architecture.persistence.beans.ParameterArea;
import com.angel.architecture.persistence.ids.ObjectId;
import com.angel.dao.generic.impl.GenericSpringHibernateDAO;

/**
 *
 * @author William
 * @since 08/April/2009
 *
 */
public class ParameterAreaSpringHibernateDAO extends GenericSpringHibernateDAO<ParameterArea, ObjectId> implements ParameterAreaDAO {

    public ParameterAreaSpringHibernateDAO(){
        super(ParameterArea.class, ObjectId.class);
    }

	public ParameterArea findUniqueByName(String name) {
		return super.findUnique("name", name);
	}

	public ParameterArea findUniqueOrNullByName(String name) {
		return super.findUniqueOrNull("name", name);
	}

	public Collection<ParameterArea> findAllByDescription(String description) {
		return super.findAll("description", description);
	}
}
